package cn.huiyunche.base.service.mappers.ext;

import cn.huiyunche.base.service.vo.WaybillNewVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SWaybillViewMapper {

    /**
     * @param paramsMap
     * @return
     * @Title: countByNoGrab
     * @Description: 统计用户没报价订单数
     * @return: int
     */
    int countByNoGrab(Map<String, Object> paramsMap);

    /**
     * @param paramsMap
     * @return
     * @Title: countByGrabAlready
     * @Description: 统计用户没报价订单数
     * @return: int
     */
    int countByGrabAlready(Map<String, Object> paramsMap);

    /**
     * @param search
     * @return
     * @Title: selectByNoGrab
     * @Description: 查询待接单订单列表
     * @return: List<WaybillNewVo>
     */
    List<WaybillNewVo> selectByNoGrab(Map<String, Object> map);

    /**
     * @param search
     * @return
     * @Title: selectByNoGrab
     * @Description: 查询已接单订单列表
     * @return: List<WaybillNewVo>
     */
    List<WaybillNewVo> selectByGrabAlready(Map<String, Object> map);

    /**
     * @param paramsMap
     * @return
     * @Title: selectByConditions
     * @Description: 查询未提车订单列表
     * @return: List<WaybillNewVo>
     */
    List<WaybillNewVo> selectByConditions(Map<String, Object> paramsMap);

    /**
     * @param id      运单id
     * @param feeCode 运输费编码
     * @return
     * @Title: selectById
     * @Description: 运单详情
     * @return: WaybillNewVo
     */
    // WaybillNewVo selectById(@Param("id") Long id, @Param("feeCode") int feeCode);
    WaybillNewVo selectById(@Param("id") Long id);

    int countByConditions(Map<String, Object> paramsMap);
}
